// CnCard 组件样式
.cn-card {
  // 基础样式已在组件中通过内联样式设置
  transition: all 0.2s ease;
  padding: 12px 24px 0px 24px !important;

  // 阴影样式
  &.cn-card-shadow {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }

  &.cn-card-border {
    border: 1px solid #e5e5e5;
  }

  &.cn-card-hover {
    &:hover {
      transform: translateY(-2px);
      &.cn-card-shadow {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
      }
    }
  }

  &.cn-card-clickable {
    cursor: pointer;

    &:active {
      transform: scale(0.98);
    }
  }

  // 无阴影样式
  &:not(.cn-card-shadow) {
    box-shadow: none;
  }
}

// 卡片头部样式
.cn-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f0f0f0;

  .cn-card-title {
    font-size: 16px;
    font-weight: 500;
    color: #333;
  }

  .cn-card-extra {
    font-size: 14px;
    color: #666;
    padding-right: 12px;
  }
}

.adm-card-body {
  padding: 0px !important;
}
// 卡片底部样式
.cn-card-footer {
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid #f0f0f0;
  font-size: 12px;
  color: #999;
}

// CardItem 组件样式
.cn-card-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  transition: all 0.2s ease;

  &.cn-card-item-border {
    border-bottom: 1px solid #f0f0f0;

    &:last-child {
      border-bottom: none;
    }
  }

  // 可点击样式
  &.cn-card-item-clickable {
    cursor: pointer;

    &:hover {
      background-color: #f5f5f5;
    }

    &:active {
      background-color: #e6e6e6;
      transform: scale(0.98);
    }
  }

  .cn-card-item-label {
    font-size: 14px;
    color: #666;
    flex-shrink: 0;
  }

  .cn-card-item-value {
    font-size: 14px;
    color: #333;
    text-align: right;
    flex: 1;
    margin-left: 16px;

    // 支持图标
    img,
    .icon {
      display: inline-block;
      width: 16px;
      height: 16px;
      margin-right: 6px;
      vertical-align: middle;
    }

    // 支持标签样式
    .tag {
      display: inline-block;
      padding: 2px 8px;
      border-radius: 12px;
      font-size: 12px;
      margin-left: 4px;

      &.tag-blue {
        background-color: #e6f7ff;
        color: #1890ff;
        border: 1px solid #91d5ff;
      }

      &.tag-green {
        background-color: #f6ffed;
        color: #52c41a;
        border: 1px solid #b7eb8f;
      }

      &.tag-red {
        background-color: #fff2f0;
        color: #ff4d4f;
        border: 1px solid #ffccc7;
      }
    }
  }
}

.adm-popup-body {
  padding: 0px !important;
  .footer-text {
    padding: 4px 0px 20px 0px;
    .footer-text-discount-label,
    .footer-text-discount,
    .footer-text-real {
      color: #ff5050;
    }
    .footer-text-discount {
      padding-left: 10px;
    }

    .footer-text-real-label {
      color: #000;
      font-size: 18px;
      padding-left: 10px;
      font-weight: 500;
    }
    .footer-text-real {
      font-size: 18px;
      font-weight: 600;
      font-weight: 18px;
      padding-left: 10px;
    }
  }
}

.footer-text {
  padding: 4px 0px 20px 0px;
  .footer-text-discount-label,
  .footer-text-discount,
  .footer-text-real {
    font-size: 12px;
    color: #ff5050;
  }
  .footer-text-discount {
    padding-left: 10px;
  }

  .footer-text-real-label {
    color: #000;
    font-size: 14px;
    padding-left: 8px;
    font-weight: 400;
  }
  .footer-text-real {
    font-size: 14px;
    font-weight: 600;
    font-weight: 14px;
    padding-left: 8px;
  }
}
